package com.woniu.orderservice.client;


import com.woniu.orderservice.entity.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther: 李浪  <br/>
 * @Date: 2020/3/25:11:15  <br/>
 * @Description:和个人中心的通信
 */
@FeignClient("userservice")
public interface UserServiceClient {

    @PostMapping("/binddings/findByGoodsId")
    @ResponseBody
    public ResultBody findByGoodsId(@RequestParam(value = "userId",required = true) Integer userId);
}
